# coding:utf-8
import pandas as pd
from sklearn.cluster import Birch

data_source = pd.read_excel("iris.xlsx")
inputs = data_source[['花萼长度', '花萼宽度', '花瓣长度', '花瓣宽度']].values
clusterer = Birch(n_clusters=None)
print(clusterer)
clusterer.fit(inputs)
print(clusterer.labels_)

